import org.hibernate.Session;
import org.hibernate.service.ServiceRegistry;

import com.kurtphpr.sistema.vendas.HibernateUtil;


public class conecta {
	public static void main(String args[]) {
		
		Class<? extends Object> sessao = null;
		
		try {
			sessao = HibernateUtil.getSession.getClass();
			System.out.println("Conectou!");
			
		} finally {

			System.out.println ("Fechou conexão");
			
		}
		
	}

}
